package com.jeomo.masterdata.starter.service;

import com.jeomo.base.starter.service.IBaseService;
import com.jeomo.masterdata.starter.entity.Merchant;

import java.util.List;
import java.util.Map;

/**
 * @author 崔贺
 */
public interface IMerchantService extends IBaseService<Merchant> {

    int create(Merchant merchant);

    /**
     * @param code 商户code
     * @description: 删除商户前先查询商品
     * @return: java.lang.Boolean
     * @author: 崔贺
     * @time: 2020/9/27 15:46
     */
    Boolean removeMerchant(String code);

    /**
     * @param tobCode
     * @description: 根据tobCodes查询商户
     * @return: java.util.List<com.jeomo.masterdata.starter.entity.Merchant>
     * @author: 崔贺
     * @time: 2020/11/6 14:25
     */
    List<Merchant> selectMerchantByTobCode(String tobCode, String orgCode);

    int updateMerchantAndGoodsFlag(String merchantCode, boolean flag);

    public Map<String, String> queryCache();
}
